package com.pth.admin.action;

import com.opensymphony.xwork2.ActionSupport;
import com.pth.model.Pxdata;
import com.pth.service.PxdataService;
import com.pth.utils.timeUtil;

@SuppressWarnings("serial")
public class PxdataAllAction extends ActionSupport {

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Pxdata getPxdata() {
		return pxdata;
	}

	public void setPxdata(Pxdata pxdata) {
		this.pxdata = pxdata;
	}

	public PxdataService getPxdataService() {
		return pxdataService;
	}

	public void setPxdataService(PxdataService pxdataService) {
		this.pxdataService = pxdataService;
	}

	private int id;
	
	private Pxdata pxdata;
	
	private PxdataService pxdataService;
	
	
	public String delete() throws Exception{
		
		Pxdata p=pxdataService.getPxdataByid(id);
		pxdataService.delete(p);
		return "delete";
	}
	
	
	
}
